package com.lmu.travel.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * @className: ${NAME}
 * @description: ${TODO}
 * @author liuxuhuang
 * @email liuxuhuang3970@qq.com
 * @date ${DATE} ${TIME}
 * @version：1.0
 */

/**
 * 订单表(Order)表实体类
 *
 * @author liuxuhuang
 * @since 2021-06-29 21:14:06
 */

@TableName(value = "order", keepGlobalPrefix = true)
@ApiModel(value = "订单表", description = "")
@Component
public class Order implements Serializable {

    private static final long serialVersionUID = 568670257595982574L;

    private String orderid;

    private String transactionid;

    private Double payment;

    private String paymenttype;

    private String status;

    private Date createtime;

    private Date updatetime;

    private Date paymenttime;

    private Date closetime;

    private String userid;

    private String seller;

    private String goods;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getTransactionid() {
        return transactionid;
    }

    public void setTransactionid(String transactionid) {
        this.transactionid = transactionid;
    }

    public Double getPayment() {
        return payment;
    }

    public void setPayment(Double payment) {
        this.payment = payment;
    }

    public String getPaymenttype() {
        return paymenttype;
    }

    public void setPaymenttype(String paymenttype) {
        this.paymenttype = paymenttype;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getPaymenttime() {
        return paymenttime;
    }

    public void setPaymenttime(Date paymenttime) {
        this.paymenttime = paymenttime;
    }

    public Date getClosetime() {
        return closetime;
    }

    public void setClosetime(Date closetime) {
        this.closetime = closetime;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getSeller() {
        return seller;
    }

    public void setSeller(String seller) {
        this.seller = seller;
    }

    public String getGoods() {
        return goods;
    }

    public void setGoods(String goods) {
        this.goods = goods;
    }

    public Order() {
    }

    public Order(String orderid, String transactionid, Double payment, String paymenttype, String status, Date createtime, Date updatetime, Date paymenttime, Date closetime, String userid, String seller, String goods) {
        this.orderid = orderid;
        this.transactionid = transactionid;
        this.payment = payment;
        this.paymenttype = paymenttype;
        this.status = status;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.paymenttime = paymenttime;
        this.closetime = closetime;
        this.userid = userid;
        this.seller = seller;
        this.goods = goods;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderid='" + orderid + '\'' +
                ", transactionid='" + transactionid + '\'' +
                ", payment=" + payment +
                ", paymenttype='" + paymenttype + '\'' +
                ", status='" + status + '\'' +
                ", createtime=" + createtime +
                ", updatetime=" + updatetime +
                ", paymenttime=" + paymenttime +
                ", closetime=" + closetime +
                ", userid='" + userid + '\'' +
                ", seller='" + seller + '\'' +
                ", goods='" + goods + '\'' +
                '}';
    }
}